#include<stdio.h>
int MyStrcmp(char *p1,char *p2)
{
	for(;*p1==*p2&&*p1;p1++,p2++);
	if(*p1=='\0'&&*p2=='\0')
		return 0;
	return *p1-*p2;
}
main()
{
	char *s1="asdfg";
	char *s2="asdfga";
	printf("%d\n",MyStrcmp(s1,s2));
}